﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Crank.Core
{
    public interface IModelTransformer
    {
        void ApplyTransform(DataModel target);
    }

    public static class ModelTransformerModelExtensions
    {
        public static void ApplyTransform<T>(this DataModel target) where T : IModelTransformer, new()
        {
            T transform = new T();
            transform.ApplyTransform(target);
        }
    }
}
